package com.langyiquan.service;

import com.langyiquan.pojo.ItemImg;
import com.langyiquan.pojo.ItemSpec;
import com.langyiquan.pojo.Items;
import com.langyiquan.utils.PagedGridResult;
import com.langyiquan.vo.CommentLevelCountVO;
import com.langyiquan.vo.ShopcartVO;
import com.langyiquan.vo.ItemBaseInfoVO;

import java.util.List;

public interface ItemService {

    public ItemBaseInfoVO queryItemById(String id);

    public List<ItemImg> queryItemImgsList(String itemId);

    public List<ItemSpec> queryItemSpecsList(String itemId);

    public CommentLevelCountVO queryCommentCounts(String itemId);

    public PagedGridResult queryPagedComments(String itemId, Integer level, Integer page, Integer pageSize);

    public PagedGridResult searchItems(String keywords, String sort, Integer page, Integer pageSize);

    public PagedGridResult esSearchItems(String keywords, String sort, Integer page, Integer pageSize);

    public PagedGridResult getRecommendItems(Integer page, Integer pageSize);

    public List<ShopcartVO> queryItemsBySpecIds(String specIds);

    public ItemSpec queryItemSpecById(String specId);

    public String queryItemMainImgById(String itemId);

    public void decreaseItemSpecStock(String itemSpecId, Integer buyCount);
}
